import request from "@/utils/request.js";

/**
 * 订单列表查询
 */
export function getOrderList(data) {
    return request({
      url: `/jy-business/mall/web/order/list`,
      method: "post",
      data,
    });
}
/**
 * 订单不同状态数量统计
 */
export function getOrderCount(data) {
    return request({
      url: `/jy-business/mall/web/order/count`,
      method: "post",
      data,
    });
}
/**
 * 订单快递发货
 */
export function sendExpress(data) {
    return request({
      url: `/jy-business/mall/web/order/send/express`,
      method: "post",
      data,
    });
}
/**
 * 订单查询物流
 */
export function lookExpress(data) {
    return request({
      url: `/jy-business/mall/web/order/track/express`,
      method: "post",
      data,
    });
}
/**
 * 取消订单/退款
 */
export function cancelOrder(data) {
    return request({
      url: `/jy-business/mall/mini/order/wx/cancel`,
      method: "post",
      data,
    });
}
/**
 * 自提完成
 */
export function pickOrder(data) {
  return request({
    url: `/jy-business/mall/web/order/pick`,
    method: "post",
    data,
  });
}

/**
 * 商家配送订单配送完成
 */
export function completePsOlder(data) {
    return request({
        url: `/jy-business/mall/web/order/ps/complete`,
        method: "post",
        data,
    });
}

